import 'package:bruno/bruno.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:yt_devops/styles/styles.dart';

class BrunoThemes {
  static register() {
    BrnInitializer.register(
      allThemeConfig: BrnAllThemeConfig(
          // 全局配置
          commonConfig: BrnCommonConfig(
              brandPrimary: Colour.primaryColor,
              brandAuxiliary: Colour.white,
              colorTextBase: Colour.mainTextColor),
          formItemConfig: BrnFormItemConfig(
              titleTextStyle:
                  BrnTextStyle(fontSize: 16.sp, color: Colour.mainTextColor),
              contentTextStyle:
                  BrnTextStyle(fontSize: 16.sp, color: Colour.mainTextColor),
              disableTextStyle: BrnTextStyle(color: Colour.mainTextColor),
              titlePaddingLg: const EdgeInsets.only(left: 0),
              formPadding: EdgeInsets.symmetric(horizontal: 0, vertical: 13.h)),
          pickerConfig: BrnPickerConfig(
            itemTextStyle:
                BrnTextStyle(fontSize: 16.sp, color: Colour.mainTextColor),
            itemTextSelectedStyle:
                BrnTextStyle(fontSize: 18.sp, color: Colour.primaryColor),
          )),
    );
  }
}
